﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Pattern_State
{
    abstract class State
    {
        public abstract void Handle();
    }

    class State1 : State
    {
        public override void Handle()
        {
            Console.WriteLine("第一种状态的处理");
        }
    }

    class State2 : State
    {
        public override void Handle()
        {
            Console.WriteLine("第二种状态的处理");
        }
    }
}
